<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DouPHP 管理中心 - 添加文章 </title>
    <meta name="Copyright" content="Douco Design." />
    <link href=/css/public.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/js/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="/js/kindeditor/plugins/code/prettify.css" />
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/global.js"></script>
    <script type="text/javascript" src="/js/jquery.autotextarea.js"></script>
    <script charset="utf-8" src="/js/kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="/js/kindeditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="/js/kindeditor/plugins/code/prettify.js"></script>
</head>
<body>
<div id="dcWrap">

    <div id="dcMain">
        <!-- 当前位置 -->
        <div id="urHere">DouPHP 管理中心<b>></b><strong>添加新闻</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="show_newsarticle.html" class="actionBtn">新闻列表</a>添加新闻</h3>
        <form action="/Index/add_newsarticle" method="post" enctype="multipart/form-data">
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <td width="90" align="right">新闻名称</td>
                    <td>
                        <input type="text" name="ne_title" value="" size="80" class="inpMain" />
                    </td>
                </tr>
                <tr>
                    <td align="right">新闻分类</td>
                    <td>
                        <!--显示新闻分类的类别名字-->
                        <select name="nc_id">
                            <foreach item="data1" name="nc_data">
                                <option value="<{$data1.nc_id}>"> <{$data1.nc_name}></option>
                            </foreach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top">新闻描述</td>
                    <td>
                        <!-- KindEditor -->



                        <!-- /KindEditor -->
                        <textarea id="content" name="ne_d" style="width:780px;height:400px;" class="textArea"></textarea>
                    </td>
                </tr>
                <!--<tr>-->
                    <!--<td align="right">缩略图</td>-->
                    <!--<td>-->
                        <!--<input type="file" name="ne_file" size="38" class="inpFlie" />-->
                        <!--<img src="/images/icon_no.png">-->
                    <!--</td>-->
                <!--</tr>-->

                <tr>
                    <td></td>
                    <td>
                        <!--<input type="hidden" name="token" value="7e4a88fb" />-->
                        <!--<input type="hidden" name="image" value="">-->
                        <!--<input type="hidden" name="id" value="">-->
                        <input name="submit" class="btn" type="submit" value="提交" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    </div>
    <div class="clear"></div>
    <div class="clear"></div> </div>
</body>
</html>
<script type="text/javascript">

//    onload = function()
//    {
//        document.forms['action'].reset();
//    }

    function douAction()
    {
        var frm = document.forms['action'];

        frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
    }



    KindEditor.ready(function(K) {
        var editor1 = K.create('textarea[name="content"]', {
            cssPath : '../plugins/code/prettify.css',
            uploadJson : '../php/upload_json.php',
            fileManagerJson : '../php/file_manager_json.php',
            allowFileManager : true,
            afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                    self.sync();
                    K('form[name=example]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                    self.sync();
                    K('form[name=example]')[0].submit();
                });
            }
        });
        prettyPrint();
    });
</script>
